<include file="application/walletyhbbadmin/view/public/left.html"/>
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>优惠券管理</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3>
            <!--<a href="{:U('Goods/add_lists')}" class="actionBtn add">添加商品</a>-->
            优惠券列表</h3>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
    <tr>
        <th align="center">用户名称</th>
        <th align="center">优惠券价格</th>
        <th align="center">优惠券减免</th>
        <th align="center">竞猜数字</th>
        <th align="center">中奖数字</th>
        <th align="center">购买时间</th>
        <th align="center">使用时间</th>
        <th align="center">到期时间</th>
        <th align="center">优惠券状态</th>
        <th align="center">是否中奖</th>
        <th align="center">操作</th>
    </tr>
    <volist name="list" id="vo" empty="$empty">
    <tr>
        <td align="center">{$vo.user_name}</td>
        <td align="center">{$vo.buy_money}</td>
        <td align="center">满{$vo.condition}减{$vo.get_money}</td>
        <td align="center">{$vo.quiz}</td>
        <td align="center">{$vo.luck_quiz}</td>
        <td align="center">{$vo.send_time|date="Y-m-d H:i:s",###}</td>
        <td align="center">{$vo.use_time|date="Y-m-d H:i:s",###}</td>
        <td align="center">{$vo.end_time|date="Y-m-d H:i:s",###}</td>
        <td align="center">
            <eq name="vo.status" value="0">
                <span>未使用</span>
            </eq>
            <eq name="vo.status" value="1">
                <spa>已使用</spa>
            </eq>
            <eq name="vo.status" value="2">
                <span>已到期</span>
            </eq>
        </td>
        <!--<td align="center">{$vo.last_update|date="Y-m-d H:i:s",###}</td>-->
        <td align="center">
            <eq name="vo.is_luck" value="1">
                <span style="color: green;">已中奖</span>
            </eq>
            <eq name="vo.is_luck" value="0">
                <span style="color:red">未中奖</span>
            </eq>
        </td>
       
        <td align="center">
            <a href="/walletyhbbadmin/goods/info/id/{$vo.id}">查看详情</a>
        <a href="{:U('Goods/edit',array('id'=>$vo['id']))}" >修改</a>
        <a href="{:U('Goods/deletes',array('id'=>$vo['id']))}" onClick="javascript:if(!confirm('确定要删除吗？'))  return  false;">删除</a>
        </td>
    </tr>
    </volist>
    </table>

</div>

</div>

<div class="clear"></div>
<center>{$page}</center>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html>